/*
 * CApp.h
 *
 *  Created on: 22/12/2012
 *      Author: Dalton
 */

#ifndef CAPP_H_
#define CAPP_H_

#include <iostream>
#include <SDL/SDL.h>
#include "CSurface.h"
#include "CEvent.h"

using namespace std;

class CApp : public CEvent{

	private:
		bool running;
		SDL_Surface* surfDisplay;

	public:
		CApp();

	public:
		int onExecute();
		bool onInit();
		void onEvent(SDL_Event* event);
		void onExit();
		void onLoop();
		void onRender();
		void onCleanUp();


};



#endif /* CAPP_H_ */
